package com.zoffy.bi.mq;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
@Component
public class BiPublisher {
    private final String QUEUE_NAME="zoffyBi.bi";
    @Resource
    private RabbitTemplate rabbitTemplate;
    public void sendMessage(long chartId){
        rabbitTemplate.convertAndSend(QUEUE_NAME,String.valueOf(chartId));
    }
}
